package com.amoyt.project.service.security.impl;

import com.amoyt.project.mapper.MenuMapper;
import com.amoyt.project.service.security.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 菜单表 服务实现类
 * </p>
 *
 * @author AmoyT
 * @since 2025-08-08
 */
@Service
public class MenuServiceImpl implements MenuService {
    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<String> getMenuPermsByUserId(String userId) {
        //只查询Menu里面的 perms字段
        return menuMapper.getMenuPermsByUserId(userId);
    }
}
